﻿package rd.hardcore.sampler 
{
	import adobe.utils.CustomActions;
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Thibault Perret
	 */
	public class PadEvent extends Event 
	{
		static public const	ITEM_SELECTED	:	String	=	"item selected";
		
		public var mediaPath				:	String;
		public var label					:	String;
		
		public function PadEvent(type:String, mediaPath:String, label:String, bubbles:Boolean = false, cancelable:Boolean = false) 
		{ 
			super(type, bubbles, cancelable);
			
			this.mediaPath = mediaPath;
			this.label = label;
		} 
		
		public override function clone():Event 
		{ 
			return new PadEvent(type, mediaPath, label, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("PadEvent", "type", "mediaPath", "label", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}